﻿using System;
using System.Collections.Generic;
using JinianNet.JNCms.Models;

namespace JinianNet.JNCms.Data
{
    public interface ITag
    {
        /// <summary>
        /// 添加
        /// </summary>
        int Insert(string item);
        /// <summary>
        /// 修改附件所属类型与关联ID
        /// </summary>
        int Update(string item,int count);
        /// <summary>
        /// 删除
        /// </summary>
        int Delete(int id);
        /// <summary>
        /// 根据关联ID与类型取所有附件
        /// </summary>
        List<Links> GetList(int pageIndex,int pageSize);
        /// <summary>
        /// 根据附件编号获取详情
        /// </summary>
        bool Exists(string item);

    }
    public partial class DataAccess
    {
        public static ITag CreateTag()
        {
            return (ITag)CreateObject(".Tag");
        }
    }
}
